export default [
  {
    path: '/sponsor/merchants', // 招商计划列表
    name: 'sponsorBusiness',
    component: resolve => require(['views/sponsor/merchants'], resolve)
  },
  {
    path: '/sponsor/merchants/add', // 招商计划新增
    name: 'sponsorMerchantsAdd',
    component: resolve => require(['views/sponsor/merchants/Add'], resolve),
    children: [{
      path: '/sponsor/merchants/add', // 填写项目概况
      component: resolve => require(['views/sponsor/merchants/BasicInfo'], resolve)
    },
    {
      path: '/sponsor/merchants/set', // 设定招商
      component: resolve => require(['views/sponsor/merchants/SetMerchants'], resolve)
    },
    {
      path: '/sponsor/merchants/plan', // 填写方案
      component: resolve => require(['views/sponsor/merchants/plan'], resolve)
    },
    {
      path: '/sponsor/merchants/check', // 等待审核
      component: resolve => require(['views/sponsor/merchants/Check'], resolve)
    }]
  },
  {
    path: '/sponsor/merchants/edit/:id', // 招商计划编辑
    name: 'sponsorMerchantsEdit',
    component: resolve => require(['views/sponsor/merchants/Add'], resolve),
    children: [{
      path: '/sponsor/merchants/edit/:id', // 修改项目概况
      component: resolve => require(['views/sponsor/merchants/BasicInfo'], resolve)
    },
    {
      path: '/sponsor/merchants/set/:id', // 修改设定招商
      component: resolve => require(['views/sponsor/merchants/SetMerchants'], resolve)
    },
    {
      path: '/sponsor/merchants/plan/:id', // 修改方案
      component: resolve => require(['views/sponsor/merchants/plan'], resolve)
    }]
  },
  {
    path: '/sponsor/merchants/manage/:id', // 竞标管理入口页面
    name: 'sponsorMerchantsManage',
    component: resolve => require(['views/sponsor/merchants/Manage'], resolve),
    children: [ // 竞标管理tab页面
      {
        path: '/sponsor/merchants/manage/:id', // 竞标管理
        component: resolve => require(['views/sponsor/merchants/Bid'], resolve)
      },
      {
        path: '/sponsor/merchants/track/:id', // 执行跟踪
        component: resolve => require(['views/sponsor/merchants/Track'], resolve)
      },
      {
        path: '/sponsor/merchants/material/:id', // 品牌素材
        component: resolve => require(['views/sponsor/merchants/Material'], resolve)
      },
      {
        path: '/sponsor/merchants/compact/manage/:id', // 合同管理
        component: resolve => require(['views/sponsor/merchants/Compact'], resolve)
      },
      {
        path: '/sponsor/merchants/fulfil/:id', // 合同履行
        component: resolve => require(['views/sponsor/merchants/Fulfil'], resolve)
      },
      {
        path: '/sponsor/merchants/sponsorship/:id', // 合同赞助
        component: resolve => require(['views/sponsor/merchants/Sponsorship'], resolve)
      }
    ]
  },
  {
    path: '/sponsor/merchants/compact/add/:bidId', // 发起合同
    component: resolve => require(['views/sponsor/merchants/CompactAdd'], resolve)
  },
  {
    path: '/sponsor/merchants/compact/edit/:contractId', // 编辑合同
    component: resolve => require(['views/sponsor/merchants/CompactAdd'], resolve)
  },
  {
    path: '/sponsor/merchants/compact/show/:contractId', // 预览合同
    component: resolve => require(['views/sponsor/merchants/CompactShow'], resolve)
  },
  {
    path: '/sponsor/merchants/compact/success', // 签署成功
    component: resolve => require(['views/sponsor/merchants/SignSuccess'], resolve)
  }
]
